package element.base;

public class TreeNode {
    public int getLindex() {
        return 0;
    }

    public boolean isWord(Wordtype wordtype) {
        if (this instanceof Word) {
            if (((Word) this).getType().equals(wordtype)) {
                return true;
            }
        }
        return false;
    }

    public boolean isSynt(Class nontertype) {
        return this.getClass().equals(nontertype);
    }
}
